PNGFileFormat

PNG file format representation

Does not actually support color correction/alteration for the chunks: cHRM, sRGB, iCCP and gAMA. Use them once you have already performed the alterations upon IDAT and respective data.

FIXME: Reliance on e.g. GC/processAllocator for when compressing/decompressing via zlib. Exporters use of filters 2, 3 and 4. Creates artifacts.

Constructors

this
this(IAllocator allocator)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Alias This

value

Members

Functions

toBytes
managed!(ubyte[]) toBytes()
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

allocator
IAllocator allocator [@property getter]

Variables

IHDR
IHDR_Chunk IHDR;
PLTE
PLTE_Chunk* PLTE;
bKGD
bKGD_Chunk* bKGD;
cHRM
cHRM_Chunk* cHRM;
gAMA
gAMA_Chunk* gAMA;
hIST
DynamicArray!(ushort, IAllocator)* hIST;
iCCP
iCCP_Chunk* iCCP;
pPHs
pPHs_Chunk* pPHs;
sBIT
sBIT_Chunk* sBIT;
sPLT
DynamicArray!(sPLT_Chunk, IAllocator)* sPLT;
sRGB
sRGB_Chunk* sRGB;
tEXt
HashMap!(PngTextKeywords, string, IAllocator)* tEXt;

tEXt values are really latin-1 but treated as UTF-8 in D code, may originate from iEXt

tIME
DateTime* tIME;
tRNS
tRNS_Chunk* tRNS;
value
ImageStorage!Color value;

Only available when Color is specified as not HeadersOnly

zEXt
HashMap!(PngTextKeywords, string, IAllocator)* zEXt;

zEXt values are really latin-1 but treated as UTF-8 in D code, may originate from iEXt

Meta